<%@ Page Language="vb" AutoEventWireup="false" Inherits="InSiteWebApplication.ESigCapturePopupForm" CodeFile="ESigCapturePopupForm.aspx.vb" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD runat="server">
        <title>ESigCapturePopupForm</title>
        <base target="_self" />        
        <!-- Caution: modifying the id and runat attributes of the body will affect the integrity of the application. -->
    </HEAD>
    <body class="FormBody" id="bodyControl" runat="server">
        <!-- Caution: modifying the id and runat attributes of the form will affect the integrity of the application. -->
        <form id="formControl" method="post" runat="server">
            <fb:section id="TopSection" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 8px" runat="server"
                Width="100%" Text="ESig Capture" LabelName="ESigCaptureSection"></fb:section>
            <fb:message id="StatusMessage" style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 480px"
                runat="server" Width="800px" Height="24px" MessageControl-Width="560px" MessageControl-LabelType="Designer" MessageControl-CssClass="Message"></fb:message>
            <ASP:PANEL id="ESigDetailsPanel" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 32px"
                runat="server" Width="800px" Height="96px">
                <FB:Label id="ESigDetailsLabel" runat="server" LabelName="ESigRequirement_ESigReqDetails"
                    FieldExpressions="ShopFloor.ESigDetails" fieldInfoType="ESigServiceDetail_Info"></FB:Label>
                <BR/>
				<fbg:SelectionCombo id="VerificationMethodCombo" runat="server" FieldExpressions=".ESigDetails.VerificationMethod"
					Width="200px" Height="22px" FirstBlankEntry="False" Version="3.00" BorderStyle="Solid" BackColor="White"
					BorderColor="LightGray" ForeColor="Black" BorderWidth="1px" ValueColumns="Value" DisplayExpression="Label">
					<ClientSideEvents AfterCloseUp="OnCloseUpDropDown" BeforeDropDown="OnBeforeDropDown"></ClientSideEvents>
					<ExpandEffects ShadowColor="LightGray"></ExpandEffects>
					<DropDownLayout BorderCollapse="Separate" AllowColSizing="Free" RowHeightDefault="20px" HeaderClickAction="Select"
						TableLayout="Fixed" StationaryMargins="Header">
						<RowStyle BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" BackColor="White" CssClass="GridRowStyle">
							<BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
						</RowStyle>
						<SelectedRowStyle ForeColor="White" BackColor="DarkBlue" CssClass="GridSelectedRowStyle"></SelectedRowStyle>
						<HeaderStyle BorderStyle="Solid" BackColor="#7896CF" CssClass="GridHeaderStyle">
							<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
						</HeaderStyle>
						<RowAlternateStyle CssClass="GridRowAlternateStyle"></RowAlternateStyle>
						<FrameStyle Width="325px" Cursor="Default" BorderWidth="2px" Font-Size="10pt" Font-Names="Verdana"
							BorderStyle="Ridge" BackColor="Silver" Height="130px"></FrameStyle>
					</DropDownLayout>
				</fbg:SelectionCombo>                
                <FBG:FieldGrid id="ESigDetailsField" runat="server" Width="816px" Height="128px" FieldExpressions="ShopFloor.ESigDetails"
                    ReadOnly="False" ReturnModifiedRowsOnly="True" LabelsType="Designer" 
                    LabelNames="PopupEditToolTip,DeleteRowToolTip" CellClickActivation="DropDown" ToolTipLabels="PopupEditToolTip,DeleteRowToolTip"
                    itemType="ESigServiceDetail" itemInfoType="ESigServiceDetail_Info" RowActionButtons="None" TabIndex="-1" ColumnLabelsType="Default" DataSubmissionMode="NotSet" DependsOn="" Encryption="False" ForceSubmit="False" RowsPerPage="100">
                    <ParentInfo ParentSource="ParentControlId"></ParentInfo>
                    <DisplayLayout StationaryMargins="Header" AutoGenerateColumns="False" AllowSortingDefault="No"
                        RowHeightDefault="20px" Version="3.00" SelectTypeRowDefault="Extended" HeaderClickActionDefault="SortSingle"
                        BorderCollapseDefault="Separate" AllowColSizingDefault="Free" Name="ESigDetailsField" TableLayout="Fixed"
                        CellClickActionDefault="Edit">
                        <AddNewBox>
                            <BoxStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">

<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White">
</BorderDetails>

                            </BoxStyle>
                        </AddNewBox>
                        <Pager PageSize="100"></Pager>
                        <HeaderStyleDefault BorderStyle="Solid" BackColor="#7896CF" CssClass="GridHeaderStyle" Height="100%" Wrap="True">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                            <Padding Bottom="3px" Top="2px" />
                        </HeaderStyleDefault>
                        <FrameStyle Width="816px" BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="Gray"
                            BorderStyle="Solid" Height="128px"></FrameStyle>
                        <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                        </FooterStyleDefault>
                        <ClientSideEvents CellClickHandler="OnGridCellClickedAutoDrop" AfterEnterEditModeHandler="OnGridCellEdit"
                            AfterExitEditModeHandler="OnGridCellEndEdit" AfterRowInsertHandler="OnAfterRowInsert" InitializeLayoutHandler="OnInitializeGridSequencing"></ClientSideEvents>
                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None" CssClass="GridEditCellStyle"></EditCellStyleDefault>
                        <SelectedRowStyleDefault ForeColor="White" BackColor="Gray" CssClass="GridSelectedRowStyle"></SelectedRowStyleDefault>
                        <RowAlternateStyleDefault CssClass="GridRowAlternateStyle"></RowAlternateStyleDefault>
                        <RowStyleDefault BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" CssClass="GridRowStyle">
                            <Padding Left="3px"></Padding>
                            <BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
                        </RowStyleDefault>
                        <FilterOptionsDefault>
                            <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                Font-Size="11px" Width="200px">
                                <Padding Left="2px" />
                            </FilterDropDownStyle>
                            <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                            </FilterHighlightRowStyle>
                        </FilterOptionsDefault>
                    </DisplayLayout>
                    <Bands>
                        <igtbl:UltraGridBand>
                            <addnewrow view="NotSet" visible="NotSet"></addnewrow>
                            <filteroptions>
                            <FilterDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" Width="200px" CustomRules="overflow:auto;">
                            <Padding Left="2px"></Padding>
                            </FilterDropDownStyle>

                            <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55"></FilterHighlightRowStyle>
                            </filteroptions>
                                                        <Columns>
                            <igtbl:UltraGridColumn EditorControlID="" Width="124px" HeaderText="SignatureCount" Key="SignatureCount" AllowUpdate="No">
                            <Header Caption="SignatureCount"></Header>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn EditorControlID="" Width="168px" HeaderText="Role" Key="Role" AllowUpdate="No">
                            <Header Caption="Role">
                            <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn EditorControlID="" Width="168px" HeaderText="Meaning" Key="Meaning" AllowUpdate="No">
                            <Header Caption="Meaning">
                            <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn EditorControlID="" Width="168px" HeaderText="CosignerRole" Key="CosignerRole" AllowUpdate="No">
                            <Header Caption="CosignerRole">
                            <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn EditorControlID="VerificationMethodCombo" Width="168px" HeaderText="VerificationMethod" Key="VerificationMethod" Type="Custom" AllowUpdate="No">
                            <Header Caption="VerificationMethod">
                            <RowLayoutColumnInfo OriginX="4"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="4"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn Hidden="True" Key="__listItemAction">
                            <Header>
                            <RowLayoutColumnInfo OriginX="5"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="5"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn Hidden="True" Key="__index">
                            <Header>
                            <RowLayoutColumnInfo OriginX="6"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="6"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn Hidden="True" Key="__derivedItemType">
                            <Header>
                            <RowLayoutColumnInfo OriginX="7"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="7"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            <igtbl:UltraGridColumn Hidden="True" Key="__Id">
                            <Header>
                            <RowLayoutColumnInfo OriginX="8"></RowLayoutColumnInfo>
                            </Header>

                            <Footer>
                            <RowLayoutColumnInfo OriginX="8"></RowLayoutColumnInfo>
                            </Footer>
                            </igtbl:UltraGridColumn>
                            </Columns>
                        </igtbl:UltraGridBand>
                    </Bands>
                    <SequencingProperties Enable="False" FieldName="" />
                </FBG:FieldGrid>
                <BR/>
            </ASP:PANEL>
            <ASP:PANEL id="CaptureDetailsPanel" style="Z-INDEX: 104; LEFT: 216px; POSITION: absolute; TOP: 184px"
                runat="server" Width="592px" Height="184px">
                <FB:Label id="CaptureDetailsLabel" runat="server" Text="ESigDetails.CaptureDetails" LabelName="ESigServiceDetail_CaptureDetails"
                    FieldExpressions="ShopFloor.ESigDetails.CaptureDetails" FieldInfoType="ESigPasswordCapture_Info"></FB:Label>
                <BR/>
                <FBG:FieldGrid id="CaptureDetailsField" runat="server" Width="608px" Height="144px" FieldExpressions="ShopFloor.ESigDetails.CaptureDetails"
                    ReadOnly="False" ReturnModifiedRowsOnly="True" LabelsType="Designer" 
                    LabelNames="PopupEditToolTip,DeleteRowToolTip" CellClickActivation="DropDown" ToolTipLabels="PopupEditToolTip,DeleteRowToolTip"
                    itemType="ESigPasswordCapture" RowActionButtons="None" ForceSubmit="False" ItemInfoType="ESigPasswordCapture_Info"
                    RowsPerPage="100">
                    <ParentInfo ParentSource="ParentControlId"></ParentInfo>
                    <Bands>
                        <igtbl:UltraGridBand>
                            <Columns>
                                <igtbl:UltraGridColumn HeaderText="Signer" Key="Signer" EditorControlID="" Width="128px" BaseColumnName=""
                                    AllowUpdate="No">
                                    <Footer Key="Signer"></Footer>
                                    <Header Key="Signer" Caption="Signer"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn HeaderText="Cosigner" Key="Cosigner" EditorControlID="" Width="128px" BaseColumnName=""
                                    AllowUpdate="No">
                                    <Footer Key="Cosigner"></Footer>
                                    <Header Key="Cosigner" Caption="Cosigner"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn HeaderText="CosignReason" Key="CosignReason" EditorControlID="" Width="128px" BaseColumnName=""
                                    AllowUpdate="No">
                                    <Footer Key="CosignReason"></Footer>
                                    <Header Key="CosignReason" Caption="CosignReason"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn HeaderText="Comments" Key="Comments" Width="204px" BaseColumnName="" AllowUpdate="No">
                                    <Footer Key="Comments"></Footer>
                                    <Header Key="Comments" Caption="Comments"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn Key="__listItemAction" Hidden="True" BaseColumnName="">
                                    <Footer Key="__listItemAction"></Footer>
                                    <Header Key="__listItemAction"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn Key="__index" Hidden="True" BaseColumnName="">
                                    <Footer Key="__index"></Footer>
                                    <Header Key="__index"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn Key="__derivedItemType" Hidden="True" BaseColumnName="">
                                    <Footer Key="__derivedItemType"></Footer>
                                    <Header Key="__derivedItemType"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn HeaderText="SignerPassword" Key="SignerPassword" Hidden="True" BaseColumnName=""
                                    AllowUpdate="No">
                                    <Footer Key="SignerPassword"></Footer>
                                    <Header Key="SignerPassword" Caption="SignerPassword"></Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn HeaderText="CosignerPassword" Key="CosignerPassword" Hidden="True" BaseColumnName=""
                                    AllowUpdate="No">
                                    <Footer Key="CosignerPassword"></Footer>
                                    <Header Key="CosignerPassword" Caption="CosignerPassword"></Header>
                                </igtbl:UltraGridColumn>
                            </Columns>
                        </igtbl:UltraGridBand>
                    </Bands>
                    <DisplayLayout StationaryMargins="Header" AutoGenerateColumns="False" AllowSortingDefault="Yes"
                        RowHeightDefault="20px" Version="3.00" SelectTypeRowDefault="Extended" HeaderClickActionDefault="SortSingle"
                        BorderCollapseDefault="Separate" AllowColSizingDefault="Free" Name="CaptureDetailsField" TableLayout="Fixed"
                        CellClickActionDefault="Edit">
                        <AddNewBox>
                            <BoxStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">

<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White">
</BorderDetails>

                            </BoxStyle>
                        </AddNewBox>
                        <Pager PageSize="100"></Pager>
                        <HeaderStyleDefault BorderStyle="Solid" BackColor="#7896CF" CssClass="GridHeaderStyle">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                        </HeaderStyleDefault>
                        <FrameStyle Width="608px" BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="Gray"
                            BorderStyle="Solid" Height="144px"></FrameStyle>
                        <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                            <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                        </FooterStyleDefault>
                        <ClientSideEvents CellClickHandler="OnGridCellClickedAutoDrop" AfterEnterEditModeHandler="OnGridCellEdit"
                            AfterExitEditModeHandler="OnGridCellEndEdit" AfterRowInsertHandler="OnAfterRowInsert"></ClientSideEvents>
                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None" CssClass="GridEditCellStyle"></EditCellStyleDefault>
                        <SelectedRowStyleDefault ForeColor="White" BackColor="Gray" CssClass="GridSelectedRowStyle"></SelectedRowStyleDefault>
                        <RowAlternateStyleDefault CssClass="GridRowAlternateStyle"></RowAlternateStyleDefault>
                        <RowStyleDefault BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" CssClass="GridRowStyle">
                            <Padding Left="3px"></Padding>
                            <BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
                        </RowStyleDefault>
                    </DisplayLayout>
                </FBG:FieldGrid>
                <BR/>
            </ASP:PANEL>
            <fb:textbox id="SignerField" style="Z-INDEX: 105; LEFT: 8px; POSITION: absolute; TOP: 184px"
                runat="server" Text="Signer" LabelName="TestVerifyPasswordSignature_Signer" TextControl-CssClass="TextMedium" TextControl-TabIndex="1"></fb:textbox>
            <fb:textbox id="PasswordField" style="Z-INDEX: 106; LEFT: 8px; POSITION: absolute; TOP: 232px"
                runat="server" Text="Password" LabelName="TestVerifyPasswordSignature_SignerPassword" TextControl-CssClass="TextMedium" TextControl-TextMode="Password"></fb:textbox>
            <fb:textbox id="CosignerField" style="Z-INDEX: 107; LEFT: 8px; POSITION: absolute; TOP: 280px"
                runat="server" Text="Cosigner" LabelName="TestVerifyPasswordSignature_Cosigner"></fb:textbox>
            <fb:textbox id="CosignerPasswordField" style="Z-INDEX: 108; LEFT: 8px; POSITION: absolute; TOP: 328px"
                runat="server" Text="Cosigner Password" LabelName="TestVerifyPasswordSignature_CosignerPassword" TextControl-CssClass="TextMedium" TextControl-TextMode="Password"></fb:textbox>
            <FB:NAMEDOBJECT id="CosignReasonField" style="Z-INDEX: 109; LEFT: 8px; POSITION: absolute; TOP: 376px"
                runat="server" Text="CosignReason" FieldExpressions="ShopFloor.ESigDetails.CaptureDetails.CosignReason" ReadOnly="false" CDOTypeName="ESigCosignReason" DisplayMode="DropDown"></FB:NAMEDOBJECT>
            <FB:TEXTBOX id="CommentsField" style="Z-INDEX: 110; LEFT: 216px; POSITION: absolute; TOP: 360px"
                runat="server" Width="576px" Text="Comments" LabelName="Update_Comments" Height="64px" ReadOnly="false" TextControl-TextMode="MultiLine" TextControl-CSSClass="textareacomments" TextControl-Width="592px"></FB:TEXTBOX>
            <fb:button id="AddSignatureButton" style="Z-INDEX: 111; LEFT: 8px; POSITION: absolute; TOP: 440px"
                runat="server" Width="144px" Text="Add Signature" LabelName="AddSignatureButton" DisplayInFrame="False" Height="28px" IsDefaultButton="True"></fb:button>
            <fb:button id="RemoveSignatureButton" style="Z-INDEX: 112; LEFT: 176px; POSITION: absolute; TOP: 440px"
                runat="server" Width="144px" Text="Remove Signature" LabelName="RemoveSignatureButton" DisplayInFrame="False" Height="28px"></fb:button>
            <fb:button id="ClearSignatureButton" style="Z-INDEX: 113; LEFT: 344px; POSITION: absolute; TOP: 440px"
                runat="server" Width="144px" Text="Clear Signatures" LabelName="ClearSignaturesButton" DisplayInFrame="False" Height="28px"></fb:button>
            <fb:button id="SubmitForm" style="Z-INDEX: 114; LEFT: 528px; POSITION: absolute; TOP: 440px"
                runat="server" Width="125px" Text="Submit" LabelName="ESigSubmitButton" DisplayInFrame="False" Height="28px" ServiceType="ShopFloor"></fb:button>
            <fb:button id="CloseButton" style="Z-INDEX: 115; LEFT: 688px; POSITION: absolute; TOP: 440px"
                runat="server" Width="125px" Text="Cancel" LabelName="CancelButton" DisplayInFrame="False" Height="28px"></fb:button>
            <fb:label id="CosignReasonRequiredLabel" style="Z-INDEX: 116; LEFT: 831px; POSITION: absolute; TOP: 197px"
                runat="server" LabelName="CosignReasonRequired" LabelType="Designer" Visible="False"></fb:label>
            <fb:label id="CompletionUpdateLabel" style="Z-INDEX: 117; LEFT: 831px; POSITION: absolute; TOP: 217px"
                runat="server" LabelName="CompletionUpdate" LabelType="Designer" Visible="False"></fb:label>
            <fb:label id="SignatureRowNotSelectedLabel" style="Z-INDEX: 118; LEFT: 831px; POSITION: absolute; TOP: 237px"
                runat="server" LabelName="SignatureRowNotSelected" LabelType="Designer" Text="A signature needs to be selected." Visible="False"></fb:label>
        </form>
    </body>
</HTML>